<template>
  <ElDatePicker style="width: 100%" v-model="formModel[widget.id]" v-bind="getElProps"> </ElDatePicker>
</template>
<script setup lang="ts" name="DateWidget">
import { ElDatePicker } from "element-plus";
import { computed } from "vue";
const props = defineProps({
  widget: {
    type: Object
  },
  formModel: {
    type: Object
  }
});
const getElProps = computed(() => {
  return { ...props.widget!.elProps, valueFormat: props.widget!.elProps.format };
});
</script>
<style lang="scss" scoped></style>
